
const state = {
  menuType: Number(sessionStorage.getItem('menuType') || 1),
  visitedRouter: []
};

const mutations = {
  updateMenuType: (state, value) => {
    state.menuType = value;
  },
  updateVisitedRouter: (state, data) => {
    state.visitedRouter = data;
  }
};

export default {
  namespaced: true,
  state,
  mutations
};
